package com.qfedu.yanglao20admin.companion.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qfedu.yanglao20.common.param.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@ApiModel("陪护员列表分页以及查询参数")
@Data
public class CompanionParam extends PageParam {

    @ApiModelProperty("姓名")
    private String companionName;

    @ApiModelProperty("用户名")
    private Integer username;

    @ApiModelProperty("区域")
    private String region;

    @ApiModelProperty("状态 1启用0禁用")
    private Integer info;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
